package cn.tedu.home.wife.controller;

import cn.tedu.home.wife.service.WifeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wife")
public class WifeController {

    @Autowired
    private WifeService wifeService;

    @GetMapping("/clean")
    public String work(){
        wifeService.cleanRoom();
        return "打扫完成!";
    }



}





